added handling of exception in spacerecordingviewmodel