Improved failure handling in the ServiceProxyHandler.

Added a log4j.properties too