Assure non-nil-ness of result before manipulating
Capture and log exceptions for Sinatra and Padrino