To exit maintenance mode in WordPress when an update fails is as easy as deleting the .maintenance file from the root folder. Fixing the update problem is another history...
.maintenance