Fixed some network crashing issues, and a rotation close bug. Issue #2