[Closes #23] Added error/refresh handling and block resumption