Added some error handling code for pframe_dirty