Define handle_message and handle_warning in silent execution

Closes gh-46