Adding changes from Malaya

Following critical errors are fixed in all classes under reliability.

1.Exception handlers should provide some context and preserve the
original exception
2. Throwable.printStackTrace(...) should never be called
Merge origin/master