Closes #137 - Added exception handler in the api module