Implemented some error checking for file moving in orphans