Catching OS erorr in lockScreen and removed comments
Removed testing string lockScreen