Added timeout exception

Program throws time out exception if not receiving clock signal for 2
seconds.