Better error handling in websockify