fixed some bugs in error handling/recovery; gevent wsgi test is working on raspberry pi
added better reporting of exit codes