Fixes for issue_16 added log and removed ex.printstacktrace T:2h45