Add exception handling as gem.