Code

Added ability for unit tests to turn off exception handling in mailgw so