Fix logging of exceptions/stacktraces. Lifecycle method return validation (#19)