Added some error handling on the locking calls. Silenced a dashboard message.