Fix logging of exceptions/stacktraces. Lifecycle method return validation