Fixed a bug where 500 errors (or most http errors) would just close without doing anything. Also fixed some cases that could have caused duplicate information to be saved for REST requests that aren't repeatable.