Complex sentence: Peter tries various ways to meet Neeson, but when he confesses his reason of being there to security, he is arrested.
Split into simpler sentences: Peter tries various ways to meet Neeson. When Peter confesses his reason of being there to security, he is arrested.