Allright,
You need to upgrade to at least 5.0.3.3 (release notes attached).
There are 3 bugs (45049, 37387, 38793) that were discovered where when a controller is shut down unexpectedly, it causes corruption to the local database. Upgrading to 5.0.3.3 will ensure that you will not have to copy off and save the local database.