try/catch exception to stop it dropping