now setting exception headers in error_properties()
added exception handling in on_message()
now setting exception headers in error_properties()