Fixed exception handling in resource.py

Handle 500 now sends signal to receivers of got_request_exception