Provides 500 server error in case of some exceptions

- Like function not found or not able to execute it