improved exception and locking
Version bump to 5.11.3
Regenerate gemspec for version 5.11.3