Catch OOM.